dont output attrs with null or undefined values
make sure empty text nodes are parseable
v0.1.4