Close #4956 – Fix update SVG elements

I added isSvg check before manipulation with class.
And test for it.