Survival of Fast Molecular Ions Traversing a Thin Foil