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

This reverts commit fe2509e1eb1fcf053fcd958392e447ee3b5d1ef2.

For some reason, this doesn't work in the error page.