fix crash on score with no measures
Merge pull request #1208 from MarcSabatella/no-measures

fix crash on score with no measures