fixes #4652 NullPonterException when click on Dynamic Plugins portlet