In common case $this->previousErrorHandler can be null (set_error_handler returns null if no error handler registered) but call_user_func require first parameters to be a valid callback