Fix a false positive with op-assignments in a loop in UselessAssignment

This fixes #804.