Fix bug in ErrorHandler when use ZF1 with PHPDaemon