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

Added appropriate condition + newline at the end.