Invalid argument for foreach fixed

Cf. https://github.com/ldleman/Leed/issues/305#issuecomment-34576716