Test for
bug 12807
: XPath incorrectly converts NaN to boolean.