Use istream::good

(U16TrivialInputStream::operator bool): Replace with istream::good call
(U16TrivialInputStream::operator!): Replace with istream::good call

`operator bool` is libstdc++ extension. So libc++ doesn't have this feature.