BUG: Fix null pointer dereference
BUG: Fix null pointer dereference

And tweak refcounts

jorisvandenbossche/numpy,MSeifert04/numpy,MSeifert04/numpy,Eric89GXL/numpy,rgommers/numpy,abalkin/numpy,WarrenWeckesser/numpy,tynn/numpy,simongibbons/numpy,shoyer/numpy,mhvk/numpy,endolith/numpy,endolith/numpy,charris/numpy,madphysicist/numpy,mhvk/numpy,mattip/numpy,pbrod/numpy,charris/numpy,jakirkham/numpy,pizzathief/numpy,pizzathief/numpy,jorisvandenbossche/numpy,mhvk/numpy,anntzer/numpy,mhvk/numpy,pbrod/numpy,pdebuyl/numpy,abalkin/numpy,abalkin/numpy,mattip/numpy,numpy/numpy,gfyoung/numpy,seberg/numpy,numpy/numpy,pizzathief/numpy,jorisvandenbossche/numpy,pizzathief/numpy,ahaldane/numpy,jakirkham/numpy,rgommers/numpy,shoyer/numpy,MSeifert04/numpy,WarrenWeckesser/numpy,gfyoung/numpy,grlee77/numpy,pizzathief/numpy,WarrenWeckesser/numpy,pbrod/numpy,endolith/numpy,numpy/numpy,endolith/numpy,mattip/numpy,rgommers/numpy,rgommers/numpy,grlee77/numpy,simongibbons/numpy,pdebuyl/numpy,MSeifert04/numpy,charris/numpy,simongibbons/numpy,grlee77/numpy,ahaldane/numpy,seberg/numpy,madphysicist/numpy,MSeifert04/numpy,ahaldane/numpy,seberg/numpy,pdebuyl/numpy,anntzer/numpy,anntzer/numpy,jakirkham/numpy,WarrenWeckesser/numpy,madphysicist/numpy,simongibbons/numpy,jakirkham/numpy,jorisvandenbossche/numpy,anntzer/numpy,pdebuyl/numpy,WarrenWeckesser/numpy,pbrod/numpy,Eric89GXL/numpy,simongibbons/numpy,mattip/numpy,grlee77/numpy,shoyer/numpy,mhvk/numpy,seberg/numpy,grlee77/numpy,madphysicist/numpy,ahaldane/numpy,shoyer/numpy,Eric89GXL/numpy,tynn/numpy,madphysicist/numpy,pbrod/numpy,charris/numpy,jakirkham/numpy,numpy/numpy,shoyer/numpy,jorisvandenbossche/numpy,tynn/numpy,gfyoung/numpy,ahaldane/numpy,Eric89GXL/numpy