Fix a false negative with reference in conditional in UselessAssignment

This fixes #475.
Merge pull request #478 from yujinakayama/handle-reference-in-conditional

Fix a false negative with reference in conditional in UselessAssignment