Fix an issue where the MQTT-SN gateway would not restart correctly due to incorrect startup order of gateway dependencies.