fixes 5267 push publishing error
Merge pull request #5604 from dotCMS/issue-5267-fix-push-publishing-error-in-master-2-5

Issue 5267 fix push publishing error in master 2 5