In the attached file the three square have the same animation. However, the middle (orange) one "skips" a couple of frames when the animation is near the end.
Created attachment 203937 [details] Test-case
Still repros in today's nightly (r151543)
Tested with 168728.