unfortunately, there is no "undo" once you save and close a workspace project or template. while this is already a problem for projects, it is a mess for templates.
I suggest having a "version control for templates", basically allowing to roll back to previous versions of the template. maybe this could be restricted to the last few "saves", but would save me some time in future ...