refactor(*): removing unused vars

Close #9710
fix(templateRequest): allow empty html template

allow empty html template and not throw error

Closes #9581