No county official shall sign as surety an official bond for any other county official; provided, that when any person has signed as surety any bond of any county official, and is thereafter elected to or appointed to fill any public office, such official shall not be deemed to have violated this section and such bond signed by such official prior to such election or appointment shall continue to be good and valid for the duration of the term of office for which the principal of such bond was elected.