fix #27841:Crashing on enabling swing fixed

Fixed the crash the was happening when enabling swing playback on some scores.