Fix potential stack overflow in dojox/gfx/path#_updateWithSegment

https://bugs.dojotoolkit.org/ticket/17715