Ensure new tab is open before switching to it