Fix a false positive in LiteralInCondition

The check should have only considered a literal condition node or `and/or`
condition node with literal as one of its operands.

This fixes #317.