Made contact XML template more tolerant of nils