Lensing and caustic effects on cosmological distances