Fix NPE when a noop GatewayAllocator is needed