Fix server error to anonymous users on profile page

Moved new offending code into the "auth user if statement"...DUH!

@sefk - here's the fix for #2356