wakeup: Add the guard condition for len in pm_get_active_wakeup_sources