Where there are executions against principals and sureties, or an execution against a principal and surety or sureties, it shall be the duty of the sheriff or other officer to make the money out of the property of the principal, unless the principal be insolvent or has no property, in which case the execution may proceed against the property of the sureties.