Butterflies dissolving is an urban legend. They don't dissolve. Caterpillars have wing stubs inside them.
Someone probably cut open a chrysalis and saw goop come out, so they assumed it was just a bag of goop. But goop would also come out of a cut open caterpillar, or a cut open butterfly, or a cut open human.