Updating prevent_duplicates duplicates to not fail if certain attributes are absent