Now here's a hack that will work perfectly in one of those emergency situations, when you find yourself with a broken flip flop.
As an emergency fix for that strap that popped out, just get a tab like the one in the picture, and place it on the tip of the sandal strap that is at the bottom of the flip flop.