xfree86: Fix potentially NULL reference to platform device's PCI device

xf86_platform_devices[i].pdev may be NULL in cases we fail to parse the
busid in config_udev_odev_setup_attribs() (see also [1], [2]) such as
when udev does not give use ID_PATH. This in turn leads to
platform_find_pci_info() being not called and pdev being NULL.

[1]: xorg/xserver#993
[2]: xorg/xserver#1076

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
5 jobs for fix-pci-device-null-reference in 3 minutes and 56 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed debian-buster #11206835

00:00:31

 
  Build And Test
passed autotools #11206836

00:03:25

passed meson #11206837

00:01:29

passed meson-noglamor #11206838

00:01:16

passed mingw-cross-build #11206839

00:00:44