Improve strokeBounds fix for paths with only one segment.