Boolean: Handle situations where seg.getNext() can be null.
Boolean: Handle situations where seg.getNext() can be null.

Closes #1056

iconexperience/paper.js,iconexperience/paper.js,iconexperience/paper.js