Fix content script injection to only work on actual tabs.