Sureties upon official bonds may appear and defend in actions against their principal whenever such sureties may ultimately be liable upon such bonds.