SGF-169 added null check for inner gateways to GatewayHubFactoryBean