kangax/fabric.js — pull request #1564 by rodovich (2014-08-04 21:03:50+00:00)
Title: Fix importing polygons with empty `points` attributes

This fixes a TypeError that gets logged when importing files like the following:

```xml

```

The [SVG spec](http://www.w3.org/TR/SVG/shapes.html#PointsBNF) allows the list of points to have 0 coordinate pairs. I also didn't see anything that says the `points` attribute is required. In any case, I have seen SVG files saved by SVG-edit that look similar to the one above. So now if `points` is missing or empty, then we return null and the element is skipped while importing.