Fix tuplet filtering
Fix issue #21533 (MIDI file causes crash)