Make sure we reinitialize let bindings in loops.

In case we had a let bindings without an initializer inside a loop,
make sure we initialize it to undefined.

Fixes #1567