Fixed Document::retrieveAttachment()
Added optional $retrieve argument to ViewResultRow::getDocument()

In addition, null is returned now if no doc can be found or retrieved.
getDocument() failed in this case previously.