Avoid light sampling outside the light grid.