They should have taken it to Switzerland or the Grand Caymans where a small percentage as a “fee” would have protected their claim.
Or had a sister expedition somewhere else to “make the find” under a friendlier jurisdiction.
In any case, I believe I’ve read somewhere that for actual men of war, rather than nominally commercial vessels, the rules about ownership of what’s on board can be different.