[CDE-252]: Fixed applying new template delete all content from dashboards

@pamval please review