Respect error_reporting() when registering error handler.

Setting an error handler without error types makes it catch every error (set_error_handler() default to E_ALL | E_STRICT).
Even with a declaration of $error_types on registerErrorHandler(), handleError() would pass errors previously not reported to the old error handler, causing unexpected results.