Try using a jinja2 "default" filter.