stream: throw invalid arg type from End Of Stream
Completed another TODO task.
Stream.finished
method has validation checks. Currently, if the stream
input param passed to it doesn't validate the input type.
In this PR, we are adding a type check and throwing type error in case the stream
is not a Stream