fix #23083: Pasting tie or slur causes crash
fix #23126: Slur of pasted notes ends on note it was copied from