It is crazy that equity ranks ahead of bonds in such situaions.
This has been a common problem with buy-outs, though I am unsure if it has been for takeovers. The fault line here is in the bond’s conditions which should have had re-payments options in the case of certain corporate events such as takeover.
There’s a question to ask one’s broker before buying a bond.