Detect instance of XPathResult correctly.

Select dragged tabs correctly on Nightly.