Fix #187 try/catch access to document.domain