[MONDRIAN-1721] Fixed issue with NonEmpty function causing too many phases
during evaluation.