When the person required by any court, or officer to execute a bond is a minor, such court or officer may accept, in lieu thereof, a bond executed by a surety or sureties only.