html is undefined then the content are not replaced by the cleaned dom. Change the _onActivateSnippet method to fix the previous error generated by the dom uncleaned. Issue introduced by https://github.com/odoo/odoo/commit/2e8222dee737215cbad0dd3556d6ec0ffe60bf00#diff-0f47e7e6900726ed7c5d97ff649ae05bR228 closes odoo/odoo#34181 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>