Fix #29881 - Stopped left over slides from being applied to rests

Fixes a crash that can occur with slides in Guitar Pro files with slides which lap over bars.