Effects of length fluctuations on the viscosity exponent in the necklace model