Fix error reporting on the account AJAX endpoint.