[agent] fix clientInspect function where underscore is not defined globally