Fix removing templates in Create template dialog
Before this commit, removing templates in Create template
dialog was possible only when clicking OK - which meant that
you had to create one template to remove another.
Now they are removed completely as soon as the user
confirms their will to remove them.
BUG:376675