Fix #2753 CErrorHandler::errorAction ignored at PHP error + AJAX request

Fix #2753 CErrorHandler::errorAction ignored at PHP error + AJAX request