schema printers BUGFIX printing status in complex extension instance

correct checking for no value
diff --git a/src/printer_yang.c b/src/printer_yang.c
index 4160361..a0112bd 100755
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -2054,8 +2054,8 @@
                     break;
                 case LY_STMT_STATUS:
                     flags = lys_ext_complex_get_substmt(LY_STMT_STATUS, (struct lys_ext_instance_complex *)ext[u], NULL);
-                    if (!flags) {
-                        return;
+                    if (!flags || !(*flags)) {
+                        break;
                     }
 
                     if (*flags & LYS_STATUS_CURR) {