fixes #5139
Merge pull request #5500 from dotCMS/issue-5139-error-500-when-you-click-what-changed

fixes #5139