MULE-8018: Merge http connector code cleanup

set() and get() don't use same type, is this deliberate?

If null is set for some reason (does this even make sense), then a get() will provoke a NPE.