Fixing order of calling .on() and .pipe() when building checksum from stream