Correcting predicate test when expression evaluation equates to null