MDL-47238 userprofile: added an error message if guests access user profiles and they aren't allowed to