ScriptedJsonPatcher now uses previously-updated doc if a patch is for a doc that was updated in the same batch.