Eliminate duplicate locations, which caused a profile-editing error.
Prevent duplicate locations from giving an error during profile editing.