[PATCH 4.19 33/61] ACPI/PCI: PM: Add missing wakeup.flags.valid checks