Make getAttribute safer
Make getAttribute safer

If the node is not an SVGElement, it has no style property and an exception is thrown. This can happen e.g. with SVGs exported from inkscape that still contain metadata tags like `<sodipodi:namedview ... />`.
yWorks/svg2pdf.js,yWorks/svg2pdf.js,yWorks/svg2pdf.js