acpi: fix crash in core ACPI code, triggered by CONFIG_ACPI_PCI_SLOT=y