protect against chrome.tabs not being defined