set the ddocs `_attachments` property if it doesn't exist

-> #2