views/editor: don't rely on cache.openDoc to be set (refs #105)