Fix favor modifier check for assignment in condition

Previous code was checking in the body of the while/if/unless, too.
Merge pull request #689 from emou/fix-favor-modifier-assignment

Fix favor modifier check for assignment in condition