When by law a bond is required, an undertaking without seal is sufficient, and must be taken in all respects as if the same were a sealed instrument.