Fixing the issue encountered when un-subscribing from an MQTT topic