fixes #5709 in master2.5
Merge pull request #5731 from dotCMS/issue-5709-job-scheduler-prtlet-throws-error

Issue 5709 job scheduler prtlet throws error