Added checking for host in MQTTClient