Fix for 'IS NOT' query shortcut not being honoured