The ice cream melts because it is gaining heat and energy from an endothermic reaction but the mass of the ice cream never leaves the cone. This is because the Law of Conservation of Mass says that matter is not created nor destroyed. Where can the mass go exactly?
Nowhere because it stays in the cone and is the same amount of ice cream as before.