All lines (slurs, ties, melisma lines, hairpins, pedal markings, trills, etc.) should end at the position of the final barline of the system, with a sliver of padding, and not extend beyond it.

Should fix:
https://musescore.org/en/node/322036
https://musescore.org/en/node/322037
https://musescore.org/en/node/319761