fixes #5786 Error in console when click on network portlet
Merge pull request #5802 from dotCMS/issue-5786-Error-in-console-when-click-on-network-portlet

fixes #5786 Error in console when click on network portlet