Bug 24808 - [imports]: document.write() in imports should do nothing.

Throw exceptions for docuent.open(), document.close() and document.write()