MULE-8018: Merge http connector code cleanup

Ok, it wouldn't avoid if and it doesn't help change anything related to getInputStreamEntity() method in HttpRequest.  But, it's quick and still worth doing to avoid IMO.