fix #22796: disable 'go to next/previous measure' button, if there is no such measure