fix #22997: Spanners in MusicXML crash MuseScore