Add provisions for setting the focus properties in cases where the depth is NaN.