fix #28821: crash on add clef to first note of measure
Merge pull request #1092 from MarcSabatella/28821-clef-crash

fix #28821: crash on add clef to first note of measure