Check tny_stream_read return value for -1 (fix 1 for NB#126941)