There is another method to replace Contact elements and that is the Mesh Connection Group.
Here is what you have, where the red edges mean that is the edge of a body.
After Insert Mesh Connection Group, Detect Connections and Generate, you get a connected mesh.