Fixes detection of classList in SVG elements.

Tested in Safari 5.1.7 on Windows and in Android Browser (WebKit-based).