fixes #5761 in master 3.0
Merge pull request #5770 from dotCMS/issue-5761-job-scheduler-portlet-error-in-master-3-0

fixes #5761 in master 3.0