Add a try/catch around this, see [this Persona snippet](https://github.com/mozilla/persona/blob/dev/resources/static/common/js/network.js#L38-L50).