Catch XPathError when searching.

(Doesn't work yet -- see #8.)