Fix the whitelist error handling for ScheduledJobTask.