Issue 10475 - destructor is called on 'for' loop variable even when initialization failed

http://d.puremagic.com/issues/show_bug.cgi?id=8563