Fix reference errors in GM_openInTab and remove GM_windowForTab.

This was broken by d2822b79eaec63ab2f8aa7646a82bdf3350a312e.