streamId comes from this line
`      int streamId = (w2 & 0x7fffffff); // 31-bit opaque identifier.`
so it should never be negative, but it doesn't hurt to have more of a sanity check here