chunkEnd not emitted if stream size < chunk size

because _lastEmittedChunk is 0, fixed by checking it is not undefined.