PHP-941: Throw MongoConnectionException on stream failures

We need to be careful to restore it after each stream call, and most
importantly before mongo_manager_log(), otherwise those log entries
could throw exception