Fixes crash on removing active profile when current, due to setting nil activeProfileId in UserDefaults.