Fix false negative in UselessAssignment with exclusive branches

This fixes #1211.
Merge pull request #1290 from yujinakayama/fix-useless-assingment-in-exclusive-branches

Fix false negative in UselessAssignment with exclusive branches