Fix null exception in txml import.