Issue:7235 [QA] iPad - Fix navigation bar on popovers

Create copies of buttons in navigation controllers, because iOS 8 lays them out even when the navigation controller is hidden.
If a window has no UILayoutContainerView to use as popover parent view, just use the window itself.