bug 1026543 - expose tab.readyState property

if there isn't some sort of `getTabContentDocument(rawTab)` util then we should make one and use it here.