If mercury was sealed inside the tooth under the new material I don't think the gum would react the way it did.

I'm not sure what it could be though...but its definitely an area to keep your eye on in the future.