Fixing infinite loop caused by setting selected segment control to HMSegmentedControlNoSegment