prevent js error in public groupblog when user not logged in