[lib/client]Don't do direct smart_ptr to bool conversion.