fixed nil class bug when no user attempts comment, no add comment privil...

...ege when not logged in