The county coroner shall be keeper of the jail when the sheriff is imprisoned or absent from the county leaving no deputy.