Make sure the view is loaded before calling viewWillAppear: