MQTT Client - missing null check