fix #20456: Measure number not displayed if top staff is hidden