Variables lookup in a template should handle properly the undefined case