Fix ZF-12514: Zend_Log_Writer_Db looks for non-existent values