Make invocation and boolean operators null-safe.