fix profile page server error for anonymous users (fixes #2356)
Merge pull request #2358 from Stanford-Online/giulio-profile-page-error

fix profile page server error for anonymous users (fixes #2356)