Fix issue with jinja2 templates and metadata that doesn't have a meta.yaml