Fixes for possible crash when presenting in a transitioning UINavigationController.