Fixed stack overflow when computing average brightness of infinite area lights.