[PATCH 5.1 59/98] ACPI/PCI: PM: Add missing wakeup.flags.valid checks