[snapshot/restore] Fix restorePersistentSettingsTest to work with no indices in the cluster