Fix for cases where SVG does not have classList

This fixes for namely IE and some WebKit (Safari, Android).

Tested on: Firefox, Chrome, Safari, PhantomJS