fixes #3425
Merge pull request #3427 from dotCMS/issue-3425-npe-on-publish-history

fixes #3425