avoid NaNs in the calculation of the mean score (David Arenillas, University of British Columbia)