Added try-catch for refractive indices length in SunPhoto Dist