Don't drop ui layers before entering the main loop. #2716

UIView::OnSwitchTo will take care of this for legacy views. If its here,
then we kill whatever UI we just set up before it even gets seen.