[cs] Use $this->params instead $app->getTemplate(true)->params at the templates. Closes #3930