fixes #5709 in master 3.0
Merge pull request #5732 from dotCMS/issue-5709-job-scheduler-portlet-throws-error-in-master-3-0

fixes #5709 in master 3.0