(Earlier versions were wrong due to buggy early implementation of Russian roulette in GridDensityMedium::Tr().