Fixed updateDedupCandidateKeys to properly update keys for records that didn't previously have any.