removes template, even if there are no elements in the DOM