[Bug 57511] New: For loop where loop var is not defined throws error without context