fix typo
a node type might have no properties or children, make cnd writer support that