MULE-8018: Merge http connector code cleanup

Becuase I'm reusing that method and don't want to have to catch InitializationException when I don't have to.