Fixed bug where submiting a document without a title would work
Merge branch 'hotfix'