Fix getTabFromDocument error in Browser Console.

Due to mishandling of chrome://browser/content/browser.xul show/load
event.