ActionSchedule - Backport API (master=>4.4)

Also - fix a PHP error that occurs in stricter environments.