Disables streaming in the extension when length is undefined.

Fixes #5372