Update getClass to support SVG edge case

The `.className` dereference is redundant, even after minification.