Bugfix invalid request handling for Ajax requests