Fix creating invalid keyframe times when pasting
Also added some safeguards against using infinite time ranges in inappropriate places.
CCBUG: 395378