allow to delete templates with backup

If queue specific template has global template
with the same name then it should be allowed to
delete it. Scrips will use global template.
Merge branch '4.2/delete-template-that-has-overlay'