fixes #5526
Merge pull request #5545 from dotCMS/issue-5526-error-in-console-push-history-tab-when-editing-folder

fixes #5526