fixes #5761 in master 2.5
Merge pull request #5768 from dotCMS/issue-5761-job-scheduler-portlet-error

Issue 5761 job scheduler portlet error