Fix crash when viewing user pages when not logged in.