MDL-46448 core_rating: cut down the amount of work we do if the user cannot see aggregate ratings