Troubles in the energy industry have presented opportunities for bond investors thirsting for yields.