Fixed curve drawing beyond last keyframes (test with infinite range was
bad)