AE: Fix a bug outlined in issue #154, which said that we were saving a template after each event to the templates ROOT file.