fix #30571: crash on drum note entry

Recent change to fix layout of 3-line drum staves broke drum note entry, but a simple fix.