If screen-space refraction was used enabled but the thickness parameter wasn't explicitly set in the material, it would end-up being uninitialized. Now it's initialized to 0.5 by default, which is the value used for subsurface. Also removed some calculations dependent on thickness being set, as they assumed a thickness of 0.