Fix related to #35681: avoid some unnecessary cycles updated when using exclude render layers.
Fix related to #35681: avoid some unnecessary cycles updated when using exclude
render layers.

tangent-opensource/coreBlackbird,pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird