The Z Combine node asserts if one of its outputs are unused. That's because we compete both outputs even if they are not needed. To fix this, we skip outputs that are not needed by splitting the shaders to compute each output independently.