Omit empty attributes in toString()