Handle nulls when upserting by deleting descendant paths