[HttpKernel] fixed circular reference detected for service "templating"