data tree BUGFIX NULL dereference

The case shouldn't ever happen,
but coverity complained.
diff --git a/src/tree_data.c b/src/tree_data.c
index eb1971e..110f535 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -861,6 +861,9 @@
             if (elem->parent == node->parent) {
                 break;
             }
+            if (!parent) {
+                LOGINT;
+            }
             parent = parent->parent;
             /* parent is already processed, go to its sibling */
             next = elem->next;