After the removal of the Shadow pass this no longer worked. Now it works by marking the object as a shadow catcher and returning the Shadow Catcher pass. The result is different than before, since it also takes into account indirect light now and uses a different method to weight the contribution of lights that is adaptive to the light strength.