Bug 817947 - Swap tab states (not docShells) when swapBrowsersAndCloseOther() is called with a pending tab; r=gavin