bugfix: writestream hanging on elements with large contents

Fixes substack/html-select#8