fix #17195: Adding tie from cross staff note causes crash