Fixed bug in Gateways DeviceManager that made it impossible to connect to an autodetected device