sync-with-meta: Handle document not existing on dest or src

Change-Id: Ibac54d0dfcdac37e1c98d901abae5cc1ed6db078