Fix possible use of undefined index in HTTPRequest