GTNPORTAL-2917. NPE problem when portal is being started