Default to 0 for `offsetWidth` or `offsetHeight`

In firefox an SVG element returns `undefined` when you call `offsetWidth`. It should fallback to 0 (Chrome returns 0).