Fix robustness issue with submitting requests for documents that don't exist