Test for
bug 41862
: XPath substring function is broken when passing NaN as the position parameter.