printer BUGFIX ignore NP state containers for explicit print
diff --git a/src/printer.c b/src/printer.c
index 1cf666f..137fe69 100644
--- a/src/printer.c
+++ b/src/printer.c
@@ -129,8 +129,10 @@
         /* LYDP_WD_EXPLICIT
          * - print only if it contains status data in its subtree */
         LYD_TREE_DFS_BEGIN(node, next, elem) {
-            if (elem->schema->flags & LYS_CONFIG_R) {
-                return 1;
+            if ((elem->schema->nodetype != LYS_CONTAINER) || (elem->schema->flags & LYS_PRESENCE)) {
+                if (elem->schema->flags & LYS_CONFIG_R) {
+                    return 1;
+                }
             }
             LYD_TREE_DFS_END(node, next, elem)
         }