This is why you take a photocopy of the photo and information pages of your passport. Or at least know your passport number. This will save a few hours but you'll still spend a day or two in Cozumel or wherever.
This is why I will take my passport with me on a private tour if there is a chance I may miss the ship.
Take care,
Mike