Treat discontinuities as keyFrames.
Let getTagsTillKeyframeMinTime return a single tag.
Add test for discontinuities in the middle of tags