Fixed a few Smarty warnings (due "bad" variables check in templates)