fix #30011: crash on delete of staff with cross staff note