Fixed crash in HTTPRequest::invalidRequest()