tree data BUGFIX check return value (#2183)

This patch fixes segfault in case of usage of anydata nodes and
LY_CTX_BUILTIN_PLUGINS_ONLY within sorted data tree.
diff --git a/src/tree_data_sorted.c b/src/tree_data_sorted.c
index 182e9c5..05bd471 100644
--- a/src/tree_data_sorted.c
+++ b/src/tree_data_sorted.c
@@ -1227,7 +1227,7 @@
     /* get the Red-black tree from the @p leader */
     rbt = lyds_get_rb_tree(*leader, &root_meta);
     if (!root_meta) {
-        lyds_create_metadata(*leader, &root_meta);
+        LY_CHECK_RET(lyds_create_metadata(*leader, &root_meta));
     }
     if (!rbt) {
         /* Due to optimization, the Red-black tree has not been created so far, so it will be