Make sure any exceptions from requestPermission's callback are reported to window.onerror.

Noted here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17713#c16