Merge "fix crash when makeHTTPConnection fails with null pointer" into lmp-dev