r25630: Allow "NULL" as memory context, for consistency with the rest of the code,