fixes #5170 JS Error when you click on Dashboard
Merge pull request #5219 from dotCMS/issue-5170-JS-Error-when-you-click-on-Dashboard

fixes #5170 JS Error when you click on Dashboard