Fixed a bug where a UINavigationController could be nested into another