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.