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