windows: remove duplicate check in stream.c

Fixes #937.