Catch errors in the onBeforeRequest handler.

https://issues.adblockplus.org/ticket/179

--HG--
extra : rebase_source : faf9791414c6307488fdde12772b57fe7120e733