Don't only try to find undeclared variables from the current template
but also recursively find undeclared variables from included and
imported jinja2 templates.
Otherwise included/imported templates with variables can not be used.
Change-Id: Iebdce1accf74f27901d80a41c85624ba819bf2a8