DeviceSettings: fix NPE on restore