Fix an edge case for HTML5 -> ByteStream