Restore process should replace the mapping and settings if index already exists

Closes #5210
Open correct (renamed) index on restore

Closes #5212