Experimental diagnostics of quantum repeaters via a collective entanglement witness