bootdevice: fix segment fault when booting guest with '-kernel' and '-initrd'