fixes #5198 to avoid calling indexOf() on SVGAnimatedString instances