HTTPServerConnection: more robust error handling
HTTPServerConnection: more robust error handling

* Fix passing a nullptr to downstream code when the request was malformed
+ Reset the connection on errors
* Fixes #5029

mc-server/MCServer,mc-server/MCServer,mc-server/MCServer,mc-server/MCServer,mc-server/MCServer,mc-server/MCServer