Allow attachments without documents

If there is a subdirectory, but no corresponding JSON document,
expect the document to be an empty one ({}).