chunkEnd not emitted if stream size < chunk size

because _lastEmittedChunk is 0, fixed by checking it is not undefined.
Merge pull request #3 from dcolens/patch-1

chunkEnd not emitted if stream size < chunk size