Fix crash caused by premature dealloc of CBLMultipartDocumentReader

See #266