Fix the false positive for redundant nil check

The the right-hand side expression of the `logical and` binary operator is an unary operator, we need to make sure it's not a `logical not` unary operator.