[connman] fix NULL pointer crash connman_device_set_disconnected

(device=0x0, disconnected=<optimized out>) at src/device.c:765