If a deferred layer doesn't contain any material with a non-null closure flag, the deferred layer is skipped. However, material with null closure flag exists and still need to render opaque. Fix this case by modifying the closure bits for the deferred and probe pipelines. Candidate for backporting to 4.2 Fix #126459