Delay creating initial versions until file is available.

During setup files are added to documents later than uausal, thus creating
initial versions must be delayed until the file is available. Fixes #564.