fixes #5728
Merge pull request #5763 from dotCMS/issue-5728-js-error-when-adding-menu-links

Issue 5728 js error when adding menu links