fix Issue 12378 - Compiler accepts any syntactically-valid code inside double-nested map predicate