Properties whose value is 'undefined' result in no tag in XML