Waffle chain steps in to buy bankrupt franchisee