Bugfix - bezierCurve calculations fails for datasets of only 1 point.

Added appropriate condition