Polyline Gaps

For #2136.

CC @shunter @mramato 
wrong variable name in error