Skipping zero-length invalid segments in Subpath.addSegment, and adding invalid segment checking
Skipping zero-length invalid segments in Subpath.addSegment, and adding invalid segment checking

phetsims/scenery,phetsims/scenery,phetsims/scenery