Fixed #5072 (False positive: comparisonOfBoolWithInvalidComparator even without explicit bool type)