Made checks in _get_common_ancestor a bit stricter to avoid XQueryTree
XErrors.

1 file changed