Safe get data length in RetryZooKeeper

RB=224108
R=dhoa,osumampo,dmessink,si-dev
A=dhoa