[hack] Instead of checking whether the db filename pointer is NULL, check for the contents as db pointer will always be not null due to allocation
[hack] Instead of checking whether the db filename pointer is NULL, check for the contents as db pointer will always be not null due to allocation

Summary:
Instead of checking whether the db filename pointer is NULL, check for the contents as db pointer will always be not null due to allocation
This caused the release to be reverted

Reviewed By: jamesjwu

Differential Revision: D4222123

fbshipit-source-id: bde5c5aa288ff3ce02349ddeef71567966f83e63

JonathanUsername/flow,AgentME/flow,gabelevi/flow,ForbesLindesay/flow,MichaelDeBoey/flow,gabelevi/flow,popham/flow,claudiopro/flow,jamesgpearce/flow,jamesgpearce/flow,mroch/flow,mroch/flow,jamesgpearce/flow,fletcherw/flow,facebook/flow,popham/flow,TiddoLangerak/flow,TiddoLangerak/flow,ylu1317/flow,claudiopro/flow,mroch/flow,nmote/flow,ylu1317/flow,TiddoLangerak/flow,mroch/flow,fletcherw/flow,claudiopro/flow,samwgoldman/flow,ForbesLindesay/flow,fletcherw/flow,samwgoldman/flow,claudiopro/flow,facebook/flow,facebook/flow,nmote/flow,samwgoldman/flow,ylu1317/flow,facebook/flow,gabelevi/flow,mroch/flow,AgentME/flow,jamesgpearce/flow,JonathanUsername/flow,popham/flow,facebook/flow,ForbesLindesay/flow,gabelevi/flow,ForbesLindesay/flow,gabro/flow,fletcherw/flow,gabro/flow,gabro/flow,TiddoLangerak/flow,AgentME/flow,popham/flow,AgentME/flow,samwgoldman/flow,ForbesLindesay/flow,nmote/flow,gabelevi/flow,popham/flow,JonathanUsername/flow,JonathanUsername/flow,mroch/flow,TiddoLangerak/flow,popham/flow,popham/flow,AgentME/flow,MichaelDeBoey/flow,jamesgpearce/flow,jamesgpearce/flow,JonathanUsername/flow,samwgoldman/flow,facebook/flow,nmote/flow,mroch/flow,nmote/flow,fletcherw/flow,MichaelDeBoey/flow,gabelevi/flow,ForbesLindesay/flow,JonathanUsername/flow,ylu1317/flow,samwgoldman/flow,gabro/flow,facebook/flow,JonathanUsername/flow,gabro/flow,MichaelDeBoey/flow,samwgoldman/flow,nmote/flow,MichaelDeBoey/flow,nmote/flow,ylu1317/flow,gabro/flow,gabelevi/flow,claudiopro/flow,fletcherw/flow,jamesgpearce/flow