xpath BUGFIX empty string should be converted to NAN double

Fixes #2256
diff --git a/src/xpath.c b/src/xpath.c
index 37055d4..8e9bf02 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -690,7 +690,7 @@
 
     errno = 0;
     num = strtold(str, &ptr);
-    if (errno || *ptr) {
+    if (errno || *ptr || (ptr == str)) {
         num = NAN;
     }
     return num;