Fixed PHP-734: Possible segfaults when error_message is not set
Merged pull request #384