fix #21862: Adding linked tablature staff to stave with notes causes crash