Bug 1078665: Ignore exceptions thrown out of getBrowserForDocument.

There are nicer ways to do this whole lot of code, but they aren't e10s compatible either so might as well just take the quick fix now and rework this all later.