at least be able to load runtime without document defined.
Merge pull request #111 from tildeio/guard-document

at least be able to load runtime without document defined.