fix #38706: Crash in Page View after deleting all measures and adding a staff