I am trying to render two renderlayers, but the second layer black background is on top of the first layer
The lens distortion node is making all the pixels in the asteroid layer opaque so that the alpha over covers up the earth layer.

The solution is to do the lens distortion after combining the layers:



The lens distortion should be done after combining layers anyway, as with a real lens everything in the image is distorted.