GTNPC-86: Add a new phase in portlet container managed life cycle
Fix NPE preventing tests to pass