don't dereference null pointer
don't dereference null pointer

Coverity Scan defect 720332 and 720333

diditaxi/beanstalkd,justintung/beanstalkd,Qihoo360/beanstalkd-win,wfxiang08/beanstalkd,aidaima/beanstalkd,handautsav/beanstalkd,bmhatfield/beanstalkd,LomoX-Offical/beanstalkd-win,lzpfmh/beanstalkd,cgvarela/beanstalkd,mickeyouyou/beanstalkd,naderman/beanstalkd,mobliyishengyuan/beanstalkd,naderman/beanstalkd,ifduyue/beanstalkd,justintung/beanstalkd,diditaxi/beanstalkd,cgvarela/beanstalkd,ifduyue/beanstalkd,amyvmiwei/beanstalkd,CompendiumSoftware/beanstalkd,qbdsoft/beanstalkd,orangeholic/beanstalkd,PhillipMwaniki/beanstalkd,handautsav/beanstalkd,pinguo-xudianyang/beanstalkd,r3jack/beanstalkd,Qihoo360/beanstalkd-win,wyzssw/beanstalkd,qbdsoft/beanstalkd,CompendiumSoftware/beanstalkd,pinguo-xudianyang/beanstalkd,davies/beanstalkd,davies/beanstalkd,mickeyouyou/beanstalkd,tdg5/beanstalkd,potatosalad/beanstalkd,kr/beanstalkd,bmhatfield/beanstalkd,aidaima/beanstalkd,JensRantil/beanstalkd,amyvmiwei/beanstalkd,tdg5/beanstalkd,r3jack/beanstalkd,potatosalad/beanstalkd,orangeholic/beanstalkd,yetone/beanstalkd,yetone/beanstalkd,naderman/beanstalkd,wyzssw/beanstalkd,kr/beanstalkd,PhillipMwaniki/beanstalkd,LomoX-Offical/beanstalkd-win,lzpfmh/beanstalkd,wfxiang08/beanstalkd,mobliyishengyuan/beanstalkd,JensRantil/beanstalkd