Improve the handling of missing document creation commands. (dm)