attribute serialization should not be fatal if a value for an attribute
is not defined, just simply don't generate the attribute pair into the
output stream