Fixed error reporting for bez/quad/curve vertices

When user calls bezierVertex()/quadraticVertex()/curveVertex() and does
not call beginShape()/beginShape(POLYGON) before or forgets to specify
first vertex(), proper error message is shown.