[templates] Fix messages rendering on various templates