Fixed situations when switching to a page and the maximized portlet was "forgotten" and when a portlet got minimized after being maximized from an event.