fix waiting for pages that dont put the dom into complete readystate