Throws exception if there are duplicated DOM templates