fixes #17850. In some cases we do have rawNode but this is not
a DOM Node => explicitely check for SVG now.