check for NaN in calculateTransformedTime; otherwise, the cubic
interpolater would infinite loop
Merge pull request #225 from samthor/check-nan-timing

check for NaN in calculateTransformedTime