Emergence of a negative charging energy in a metallic dot capacitively coupled to a superconducting island