Update HttpConnection.java

delete redundant nullcheck code