xpath BUGFIX when starting with "." evaluation

Fixes #1929
diff --git a/src/xpath.c b/src/xpath.c
index 2b0bcfe..49b87d6 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -5712,8 +5712,9 @@
         }
     }
 
-    /* when check */
-    if (!(options & LYXP_IGNORE_WHEN) && lysc_has_when(node->schema) && !(node->flags & LYD_WHEN_TRUE)) {
+    /* when check, accept the context node because it should only be the path ".", we have checked the when is valid before */
+    if (!(options & LYXP_IGNORE_WHEN) && lysc_has_when(node->schema) && !(node->flags & LYD_WHEN_TRUE) &&
+            (node != set->cur_node)) {
         return LY_EINCOMPLETE;
     }