BUG: Fix change of type of period.sharpe
BUG: Fix change of type of period.sharpe

The factoring out of the Sharpe calculation changed behavior
so that both period and cumulative return nans when there is
no volatility; however before that change period returned 0.0.

This breaks existing consumers which expected a non-nan value
for period results.

Smooth out that change by checking the value after the sharpe
has been calculated and reset nan's to 0.0

gwulfs/zipline,nborggren/zipline,quantopian/zipline,CDSFinance/zipline,stkubr/zipline,sketchytechky/zipline,humdings/zipline,StratsOn/zipline,morrisonwudi/zipline,nborggren/zipline,CDSFinance/zipline,dhruvparamhans/zipline,Scapogo/zipline,magne-max/zipline-ja,aajtodd/zipline,umuzungu/zipline,joequant/zipline,jordancheah/zipline,magne-max/zipline-ja,ChinaQuants/zipline,DVegaCapital/zipline,MonoCloud/zipline,MonoCloud/zipline,enigmampc/catalyst,alphaBenj/zipline,kmather73/zipline,dmitriz/zipline,grundgruen/zipline,florentchandelier/zipline,wubr2000/zipline,chrjxj/zipline,jordancheah/zipline,mattcaldwell/zipline,AlirezaShahabi/zipline,otmaneJai/Zipline,stkubr/zipline,euri10/zipline,iamkingmaker/zipline,umuzungu/zipline,quantopian/zipline,YuepengGuo/zipline,DVegaCapital/zipline,Scapogo/zipline,AlirezaShahabi/zipline,gwulfs/zipline,sketchytechky/zipline,dhruvparamhans/zipline,erikness/AlephOne,wilsonkichoi/zipline,enigmampc/catalyst,alphaBenj/zipline,ronalcc/zipline,michaeljohnbennett/zipline,wubr2000/zipline,dkushner/zipline,jimgoo/zipline-fork,cmorgan/zipline,semio/zipline,dkushner/zipline,cmorgan/zipline,humdings/zipline,florentchandelier/zipline,aajtodd/zipline,michaeljohnbennett/zipline,erikness/AlephOne,zhoulingjun/zipline,chrjxj/zipline,bartosh/zipline,keir-rex/zipline,StratsOn/zipline,ronalcc/zipline,iamkingmaker/zipline,wilsonkichoi/zipline,dmitriz/zipline,ChinaQuants/zipline,joequant/zipline,jimgoo/zipline-fork,semio/zipline,bartosh/zipline,zhoulingjun/zipline,grundgruen/zipline,keir-rex/zipline,euri10/zipline,kmather73/zipline,mattcaldwell/zipline,YuepengGuo/zipline,morrisonwudi/zipline,otmaneJai/Zipline