Fix crashing stroke bounds

Test and fix for crashing path.strokeBounds when path has only one segment and strokeColor is set. Because there is only one segment, getLocation returns null and getNormal cannot be called. Paths with a single segment are not drawn and therefore have zero width and height.