Fixed offsetWidth & offsetHeight for SVG elements

The issue was happening in a D3 chart for all browsers except Chrome and Safari.