Fix fetching attachments in BasicDocumentRevisions