fix #37376: Crash when paging through file containing multi-measure rest