Set tab ID correctly for chrome.extension.* and chrome.tab.* APIs
Finished feature 53552057/detect-tab-context.