fix #21211: Score is corrupt if glissando had been pasted