fix #25823 removal of ties
Added removal of ties that do not have an end element when pasted.
Fixed test scores for tie copying.
Merge pull request #925 from BartlomiejLewandowski/25823-copied-tie

fix #25823 removal of ties