fix #30571: crash on drum note entry

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