Looks like a straightforward fix, but this changes a test output and the alpha pass was actively removed in D12015 so I'm submitting as a patch just to be sure.
As far as I can see, it makes a lot of sense to have the alpha channel here, it matches the 2.x behavior and also matches what Eevee is doing.