If new pane is created, make it the active pane

This is for #9255 

cc @JeffryBooher 
why not just combine these two lines and you don't need `promise` either... `promises.push(_panes[...)`