Fix removal of screen capture of the previously active tab when new tab created