CurvePath's BoundingBox calculation issue

If the curve's points have their coordinates only increasing, the
minimum of the BoundingBox returned is the positive infinity.
e.g : consider the x coordinates are -5, 0 and 5, minX would never be
set (line 160@CurvePath.js)