Fixed Document::retrieveAttachment(), improved ViewResultRow::getDocument()