Fix Element::IsAttachedToDom() when used with SVG for IEDriver

The first commits are already in https://github.com/SeleniumHQ/selenium/pull/27.
CLA signed