tree printer CHANGE printing rpcs: and notifications: labels

Do not print the labels if there are no enabled (via if-feature)
rpcs/notifications.
diff --git a/src/printer_tree.c b/src/printer_tree.c
index 905453e..9753fb2 100644
--- a/src/printer_tree.c
+++ b/src/printer_tree.c
@@ -716,10 +716,14 @@
     LY_TREE_FOR(module->data, node) {
         switch(node->nodetype) {
         case LYS_RPC:
-            have_rpcs++;
+            if (!lys_is_disabled(node, 0)) {
+                have_rpcs++;
+            }
             break;
         case LYS_NOTIF:
-            have_notifs++;
+            if (!lys_is_disabled(node, 0)) {
+                have_notifs++;
+            }
             break;
         default:
             tree_print_snode(out, module, level, indent, max_child_len, node,