Bugfix - bezierCurve calculations silently fails for datasets containing only 1 point.
Added "if" and appropriate indentation.