Fix error with node discovery when there are no remaining cassandra nodes in the pool