Fixes a problem where a notice about array to string conversion would be shown for HTMLTemplates.