xpath BUGFIX skip opaque nodes

Fixes #1657
diff --git a/src/xpath.c b/src/xpath.c
index dd19643..08b79dd 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -5433,6 +5433,11 @@
 moveto_node_check(const struct lyd_node *node, const struct lyd_node *ctx_node, const struct lyxp_set *set,
         const char *node_name, const struct lys_module *moveto_mod, uint32_t options)
 {
+    if (!node->schema) {
+        /* opaque node never matches */
+        return LY_ENOT;
+    }
+
     if (!moveto_mod && (!node_name || strcmp(node_name, "*"))) {
         switch (set->format) {
         case LY_VALUE_SCHEMA: