Any company which shall execute any bond, recognizance, obligation, stipulation or undertaking as surety shall be estopped, in any proceeding to enforce the liability which it shall have assumed to incur, to deny its power to execute the same or assume such liability.
215 ILCS 5/392