Fixed evaluation of "!" operator in case of multiple profile expressions

Issue: SPR-11093