Handle RecordNotFound exception in merge action.