InputStreamDataEmitter blocking fixes

Change-Id: I8e728545b5e20c6876572cdfa6af175fd7ebae72