ACPI: fix NULL pointer dereference