Handle DOMParser exception