Added check for old reading API.

The streaming function is now safe for legacy clients which don't
respect reading in chunks.