fix(ngAnimate): test for SVG element on animate

SVG elements contain an Object in the node.className variable. This causes a failure when trying to manipulate SVG elements using ng-class.

This change tests for the existence of the SVG Object and handles it appropriately.