Some methods were updating UI from non-main thread.
Fixes crash on removing active profile when current, due to setting nil activeProfileId in UserDefaults.