GTNPORTAL-3303 UIIFramePortlet always in Edit mode

Small fix.
It should go on master and 3.6.x.