Bugfix - bezierCurve calculations silently fails for datasets with 1 point only.

Added "if" and appropriate indentation.