ENG-4895 Fix stream activation error with no tuples.
Merge commit 'c661b6e' into ENG-4941