fixes random firefox bug when getPointAtLength gives an error. closes #8