CDRIVER-3587 use centralized check for valid stream
CDRIVER-3587 use centralized check for valid stream

jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,beingmeta/mongo-c-driver,beingmeta/mongo-c-driver,rcsanchez97/mongo-c-driver,beingmeta/mongo-c-driver,rcsanchez97/mongo-c-driver,rcsanchez97/mongo-c-driver,mongodb/mongo-c-driver,beingmeta/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,jmikola/mongo-c-driver,mongodb/mongo-c-driver,jmikola/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,mongodb/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,beingmeta/mongo-c-driver,beingmeta/mongo-c-driver,jmikola/mongo-c-driver,beingmeta/mongo-c-driver,rcsanchez97/mongo-c-driver,jmikola/mongo-c-driver,rcsanchez97/mongo-c-driver