Store whether a document has ever generated any assets in the document's context. 

This is used to make sure that we only move an untitled document's assets if it has actually generated some.

Fixes #97