Bugfix. The 'tpl' config value might not be defined.