bootdevice: add check in restore_boot_order()