LPS-48752 move logic to after the portlets have been initialized so that...

... only the invalid staging options are removed and not all of the staging options (i.e. staged-portlet typeSettings).