Fix segfault if circle has length 0
Fix segfault if circle has length 0

Because size() - 1 would get an underflow and so be infinite, it would loop forever, but first it would segfault for accessing an index out of range.

Ultimaker/CuraEngine,Ultimaker/CuraEngine