Fixed a crash in SettingsActivity

When update button was tapped in SettingsActivity, the app crashed. Fixed it.