Formula parser fix for logical NOT