Change in navigation controller category to support forwarding to modal presented view controllers

The currently visible view in navigation controller can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally.