Don't crash when a loop variable isn't defined

If a loop variable isn't defined, we treat it like it is an empty list.
This brings the behavior in line with the python DTL implementation.

--
I would like to review this