Fixed EZP-20767: PostgreSQL fails with binary 'and' operator's result used as a boolean value