I haven't tested this, but do we have reason to believe that a bad stream id causes an error code?  Maybe, for example, 0 is allowed.

-[Unknown]