Fixed crash caused by using invalid context when saving changes to notifications settings