fix #38816: crash on delete all of empty score with title frame
Merge pull request #1448 from MarcSabatella/38816-delete-all-empty

fix #38816: crash on delete all of empty score with title frame