Device: Fix forgetting of a device in bootloader mode.