vgabios: Check that the PCI BDF passed in is valid before using.