Three sly fixes

* Fixed external links crashing.
* Fixed "Import from HTML" choking on passages with no text.
* Fixed <<endnobr>> consuming the three characters that come after it.
* As an extra fallback, window.onerror is now set to issue a one-time
alert() signifying that all is not well.