fix #39421: fix selection detection of break plugin

similar to earlier fixes for colornotes (606b401) and notenames
(df6e8a0)
Merge pull request #1461 from Jojo-Schmitz/break-every-x-measures

fix #39421: fix selection detection of break plugin