legacy: get_most_popular_field_values fix
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>