Fixes SVG negative-height issue for rectangles (when SVG). Ensuring rectangle width does not go negative, although we can consider an API change later