Fixes regression from apscheduler API change.