Fix for callback as single argument to mqtt.createClient

The callback was overwritten with defaultPort.
Changed the order of assignments to make it work.