Fixed error in RestControllerProxyFactory::handleBadRequest.