use gentler undefined method in jinja