Usually bondholders are also wiped out during a bailout. Bailouts are generally for customers / counterparties, not investors.
Sometimes in a bankruptcy, bondholders take a "haircut" and agree to get less money back because the company simply can't pay them what they're owed.