Handle DOMParser exception

- Fixes #168
- Alternative to #174
- Implemented without overloading **DOMParser**
- Tested on:
  - Firefox 9
  - Firefox 18.0.1
  - Opera 12.12
  - Chrome 24.0.1312.56
  - Safari 6.0