LPS-42611 When in a customized view, hasPortletId() was returning true if the portlet was in the default view not letting the user add it again after removing it.