HPCC-10546 Avoid hoisting NOT <global> as a global expression

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>