Fix NPE on checkProgramIdScheduled
Fix NPE on checkProgramIdScheduled