fixes #5786 Error in console when click on network portlet