SERVER-7920 Make getCollectionNames function in C++ driver throw exception on error