fix exam view when not logged in

get_profile() doesn't exist for the anonymous user