Fix fail when UI created event processed during local server restart (first navigate failed)