Fix svg w/o classList test for some browsers