Fix CollapsableIfStatements False Positive

This pull request tries to solve the problem found by @maplesteve in #10.