fix #29151: tie positioning in chords

This replaces https://github.com/musescore/MuseScore/pull/1108/