Fix fatal error, when using custom error handling when not ignoring deprecated messages.

My error handler threw exceptions on deprecated messages. I changed that, but want to suggest the following change nonetheless; it may be beneficial to anyone using >= php 5.3