Fix error on a setter invocation with operator assignment in a loop body

This error was caused by the change of #807 (unreleased).