fixes #5803
Merge pull request #5814 from dotCMS/issue-5803-js-error-in-console-structures-history-tab

fixes #5803