Empty value for x1, x2, y1 and y2 should be zero if NaN.
Merge pull request #22 from renatoi/empty-attribute

Empty value for x1, x2, y1 and y2 should be zero if NaN.