fix #30011: crash on delete of staff with cross staff note
Merge pull request #1480 from MarcSabatella/40011-delete-staff-with-cross

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