[Fix #9050] Fix a false positive for Style/NegatedIfElseCondition
#9051
+14
−1
Style/NegatedIfElseCondition
#9051