Add catch for incomplete read in database export (#7155)

Added handling of IncompleteRead exception in
export_database.store_result_into_file().  This may not resolve
the issue of closed HTTP connections to CouchDB, but may give us
more information as to what sometimes fails.