Corrected MqttPersistence instantiation logic