Fix bug in writing Thermostat XML