Wrap the exception in document.registerElement so that we can still run the rest of the script