Fixed a bug where the browser was closing at extension deactivation if one particular tab was opened before