Fixed problem with MQTTConnect

Flags were not being set (was still in the "test" mode with preset
flags, ignoring any other set flags)