Fix median crash on null values or non integer values
Fix median crash on null values or non integer values

Fix #939

tommymei/influxdb,brunoqc/influxdb,Tony133/influxdb,fg2it/influxdb,m4ce/influxdb,runcom/influxdb,GoIncremental/influxdb,linearb/influxdb,wxdublin/influxdb,imcom/influxdb,apriendeau/influxdb,evanphx/influxdb,Wikia/influxdb,daachi/influxdb,pablolmiranda/influxdb,ninjasphere/influxdb,marcosnils/influxdb,Venu4thFeb/influxdb,dneuman64/influxdb,pdf/influxdb,cabify/influxdb,apigee/influxdb,egymgmbh/influxdb,no2key/influxdb,IMCG/InfluxDB,daachi/influxdb,influxdb/influxdb,neonstalwart/influxdb,Mindera/influxdb,egymgmbh/influxdb,nickscript0/influxdb,slachiewicz/influxdb,mnuessler/influxdb,bspline/influxdb,CVTJNII/influxdb-tjnii,fg2it/influxdb,radcheb/influxdb,m4ce/influxdb,slavau/influxdb,rnubel/influxdb,nooproblem/influxdb,rnubel/influxdb,jgeiger/influxdb,linearb/influxdb,joaopedrotaveira/influxdb,s7v7nislands/influxdb,li-ang/influxdb,jonseymour/influxdb,pablolmiranda/influxdb,archsaber/influxdb,opavader/influxdb,CVTJNII/influxdb-tjnii,linfangrong/influxdb,samaitra/influxdb,kingland/influxdb,DanielMorsing/influxdb,influxdb/influxdb,luciotorre/influxdb,samaitra/influxdb,imcom/influxdb,pkittenis/influxdb,michaelsproul/influxdb,jportoles/influxdb092,CVTJNII/influxdb-tjnii,luciotorre/influxdb,GoIncremental/influxdb,slachiewicz/influxdb,alexiri/influxdb,no2key/influxdb,bluebreezecf/influxdb,ASAPPinc/influxdb,CrazyJvm/influxdb,haim0n/influxdb,pkittenis/influxdb,Ancillas/influxdb,marcosnils/influxdb,mvadu/influxdb,linearb/influxdb,mvadu/influxdb,stvnwrgs/influxdb,joaopedrotaveira/influxdb,lenko-d/influxdb,jipperinbham/influxdb,toorop/influxdb,no2key/influxdb,trigrass2/influxdb,tommymei/influxdb,apigee/influxdb,apigee/influxdb,mengjinglei/influxdb,bluebreezecf/influxdb,cnelissen/influxdb,m4ce/influxdb,dneuman64/influxdb,Venu4thFeb/influxdb,mnuessler/influxdb,nckturner/influxdb,jonseymour/influxdb,Yong-Lee/influxdb,GrimDerp/influxdb,ninjasphere/influxdb,Wikia/influxdb,trigrass2/influxdb,mre/influxdb,daachi/influxdb,mash0304/influxdb,mnuessler/influxdb,brunoqc/influxdb,mnuessler/influxdb,trigrass2/influxdb,benbjohnson/influxdb,mcanthony/influxdb,cabify/influxdb,slavau/influxdb,timraymond/influxdb,slachiewicz/influxdb,apigee/influxdb,toorop/influxdb,tjyang/influxdb,roobert/influxdb,slachiewicz/influxdb,n1tr0g/influxdb,mark-rushakoff/influxdb,cabify/influxdb,mcanthony/influxdb,jipperinbham/influxdb,tjyang/influxdb,fxstein/influxdb,archsaber/influxdb,apriendeau/influxdb,bspline/influxdb,tommymei/influxdb,brunoqc/influxdb,mre/influxdb,daachi/influxdb,cannium/influxdb,ASAPPinc/influxdb,ezotrank/influxdb,benbjohnson/influxdb,lgpeterson/influxdb,vladlopes/influxdb,gdi2290/influxdb,GrimDerp/influxdb,samaitra/influxdb,linfangrong/influxdb,rnubel/influxdb,CVTJNII/influxdb-tjnii,egymgmbh/influxdb,pdf/influxdb,nickscript0/influxdb,s7v7nislands/influxdb,121watts/influxdb,samaitra/influxdb,apriendeau/influxdb,mengjinglei/influxdb,toorop/influxdb,kingland/influxdb,influxdata/influxdb,s7v7nislands/influxdb,neonstalwart/influxdb,m4ce/influxdb,arussellsaw/influxdb,runner-mei/influxdb,ninjasphere/influxdb,pablolmiranda/influxdb,samaitra/influxdb,otoolep/influxdb,Sotfo/influxdb,ezotrank/influxdb,sudabon/influxdb,tuxmonteiro/influxdb,mmaul/influxdb,josephcopenhaver/influxdb,brunoqc/influxdb,Wikia/influxdb,n1tr0g/influxdb,jportoles/influxdb092,atyenoria/influxdb,joaopedrotaveira/influxdb,Mindera/influxdb,benbjohnson/influxdb,lenko-d/influxdb,atyenoria/influxdb,jportoles/influxdb092,Mindera/influxdb,lenko-d/influxdb,josephcopenhaver/influxdb,lenko-d/influxdb,roobert/influxdb,pkittenis/influxdb,nooproblem/influxdb,stvnwrgs/influxdb,mash0304/influxdb,opavader/influxdb,tuxmonteiro/influxdb,luciotorre/influxdb,endophage/influxdb,lgpeterson/influxdb,michaelsproul/influxdb,joaopedrotaveira/influxdb,pkittenis/influxdb,jonseymour/influxdb,pablolmiranda/influxdb,rnubel/influxdb,runcom/influxdb,josephcopenhaver/influxdb,Sotfo/influxdb,apriendeau/influxdb,mcanthony/influxdb,hyperworks/influxdb,jgeiger/influxdb,otoolep/influxdb,influxdata/influxdb,linearb/influxdb,mnuessler/influxdb,otoolep/influxdb,s7v7nislands/influxdb,kingland/influxdb,bspline/influxdb,bluebreezecf/influxdb,fg2it/influxdb,ninjasphere/influxdb,nickrobinson/influxdb,slavau/influxdb,mre/influxdb,chenziliang/influxdb,Mindera/influxdb,linfangrong/influxdb,ezotrank/influxdb,jgeiger/influxdb,vladlopes/influxdb,daachi/influxdb,opavader/influxdb,nickrobinson/influxdb,Tony133/influxdb,radcheb/influxdb,Sotfo/influxdb,mark-rushakoff/influxdb,evanphx/influxdb,evanphx/influxdb,mash0304/influxdb,jipperinbham/influxdb,CVTJNII/influxdb-tjnii,roobert/influxdb,arussellsaw/influxdb,timraymond/influxdb,li-ang/influxdb,wxdublin/influxdb,mvadu/influxdb,paulstuart/influxdb,trigrass2/influxdb,influxdb/influxdb,mmaul/influxdb,dneuman64/influxdb,endophage/influxdb,evanphx/influxdb,100star/influxdb,nooproblem/influxdb,archsaber/influxdb,cnelissen/influxdb,pdf/influxdb,GrimDerp/influxdb,slachiewicz/influxdb,archsaber/influxdb,lenko-d/influxdb,sudabon/influxdb,CrazyJvm/influxdb,Wikia/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,luciotorre/influxdb,apriendeau/influxdb,radcheb/influxdb,sudabon/influxdb,Yong-Lee/influxdb,arussellsaw/influxdb,jgeiger/influxdb,alexiri/influxdb,Ancillas/influxdb,Sotfo/influxdb,dneuman64/influxdb,mre/influxdb,hyperworks/influxdb,toorop/influxdb,joaopedrotaveira/influxdb,cnelissen/influxdb,paulstuart/influxdb,linfangrong/influxdb,eminden/influxdb,arussellsaw/influxdb,Yong-Lee/influxdb,mark-rushakoff/influxdb,cannium/influxdb,michaelsproul/influxdb,michaelsproul/influxdb,eminden/influxdb,mcanthony/influxdb,haim0n/influxdb,mnuessler/influxdb,n1tr0g/influxdb,ASAPPinc/influxdb,alexiri/influxdb,neonstalwart/influxdb,neonstalwart/influxdb,100star/influxdb,roobert/influxdb,imcom/influxdb,CrazyJvm/influxdb,lgpeterson/influxdb,GoIncremental/influxdb,nckturner/influxdb,m4ce/influxdb,pkittenis/influxdb,radcheb/influxdb,GoIncremental/influxdb,mmaul/influxdb,nickrobinson/influxdb,stvnwrgs/influxdb,chenziliang/influxdb,benbjohnson/influxdb,marcosnils/influxdb,m4ce/influxdb,fxstein/influxdb,Venu4thFeb/influxdb,stvnwrgs/influxdb,Venu4thFeb/influxdb,influxdb/influxdb,runner-mei/influxdb,cabify/influxdb,fxstein/influxdb,lgpeterson/influxdb,apigee/influxdb,endophage/influxdb,jgeiger/influxdb,DanielMorsing/influxdb,Ancillas/influxdb,radcheb/influxdb,arussellsaw/influxdb,nickscript0/influxdb,brunoqc/influxdb,cnelissen/influxdb,imcom/influxdb,sudabon/influxdb,pablolmiranda/influxdb,endophage/influxdb,atyenoria/influxdb,DanielMorsing/influxdb,IMCG/InfluxDB,fg2it/influxdb,gdi2290/influxdb,bluebreezecf/influxdb,vladlopes/influxdb,IMCG/InfluxDB,mengjinglei/influxdb,jonseymour/influxdb,rnubel/influxdb,121watts/influxdb,Tony133/influxdb,kingland/influxdb,paulstuart/influxdb,endophage/influxdb,nickscript0/influxdb,no2key/influxdb,jportoles/influxdb092,GoIncremental/influxdb,marcosnils/influxdb,tjyang/influxdb,arussellsaw/influxdb,GrimDerp/influxdb,cabify/influxdb,ninjasphere/influxdb,lgpeterson/influxdb,toorop/influxdb,slavau/influxdb,timraymond/influxdb,nickscript0/influxdb,eminden/influxdb,cannium/influxdb,runner-mei/influxdb,mvadu/influxdb,nooproblem/influxdb,trigrass2/influxdb,IMCG/InfluxDB,no2key/influxdb,hyperworks/influxdb,chenziliang/influxdb,mark-rushakoff/influxdb,mre/influxdb,jipperinbham/influxdb,pdf/influxdb,nckturner/influxdb,fxstein/influxdb,sudabon/influxdb,Ancillas/influxdb,mvadu/influxdb,Mindera/influxdb,Ancillas/influxdb,jonseymour/influxdb,paulstuart/influxdb,apigee/influxdb,jipperinbham/influxdb,GrimDerp/influxdb,eminden/influxdb,mash0304/influxdb,otoolep/influxdb,otoolep/influxdb,n1tr0g/influxdb,mcanthony/influxdb,bspline/influxdb,Yong-Lee/influxdb,ASAPPinc/influxdb,mmaul/influxdb,nooproblem/influxdb,bspline/influxdb,eminden/influxdb,tuxmonteiro/influxdb,stvnwrgs/influxdb,marcosnils/influxdb,dneuman64/influxdb,Wikia/influxdb,DanielMorsing/influxdb,jgeiger/influxdb,chenziliang/influxdb,121watts/influxdb,timraymond/influxdb,mvadu/influxdb,pdf/influxdb,ezotrank/influxdb,opavader/influxdb,timraymond/influxdb,runcom/influxdb,runner-mei/influxdb,tjyang/influxdb,kingland/influxdb,wxdublin/influxdb,jportoles/influxdb092,alexiri/influxdb,paulstuart/influxdb,roobert/influxdb,hyperworks/influxdb,linearb/influxdb,Yong-Lee/influxdb,wxdublin/influxdb,gdi2290/influxdb,CrazyJvm/influxdb,n1tr0g/influxdb,CVTJNII/influxdb-tjnii,hyperworks/influxdb,opavader/influxdb,haim0n/influxdb,Mindera/influxdb,atyenoria/influxdb,mengjinglei/influxdb,bluebreezecf/influxdb,mmaul/influxdb,atyenoria/influxdb,otoolep/influxdb,nickrobinson/influxdb,cnelissen/influxdb,josephcopenhaver/influxdb,nckturner/influxdb,egymgmbh/influxdb,tommymei/influxdb,influxdb/influxdb,slavau/influxdb,tuxmonteiro/influxdb,egymgmbh/influxdb,n1tr0g/influxdb,nickrobinson/influxdb,IMCG/InfluxDB,tuxmonteiro/influxdb,mash0304/influxdb,michaelsproul/influxdb,jipperinbham/influxdb,samaitra/influxdb,sudabon/influxdb,jonseymour/influxdb,ASAPPinc/influxdb,daachi/influxdb,linfangrong/influxdb,wxdublin/influxdb,fxstein/influxdb,cannium/influxdb,influxdb/influxdb,nckturner/influxdb,pkittenis/influxdb,luciotorre/influxdb,DanielMorsing/influxdb,fg2it/influxdb,Tony133/influxdb,Sotfo/influxdb,alexiri/influxdb,100star/influxdb,vladlopes/influxdb,runcom/influxdb,josephcopenhaver/influxdb,Venu4thFeb/influxdb,imcom/influxdb,tommymei/influxdb,Tony133/influxdb,runcom/influxdb,121watts/influxdb,haim0n/influxdb