Tweaking upsertCard to prevent potential issues with upserting the _id value