When a template is edited if the template name is changed then update the template id (hack)
When a template is edited if the template name is changed then update the template id (hack)

materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org