GTNPORTAL-3156  NullPointerException when rendering portlet in method UI...

...Portlet.getSuitedTheme()

Some additional fixes on window state changes fixed in GTNPORTAL-3182