You can still foil, just don't cook them as long in the foil. Keep an eye on them, and a toothpick handy. Once that toothpick goes in with little to no resistance, you're good.
Even though we don't like overcooked ribs, slightly overdone is better than underdone any day.