When any town clerk is unable to discharge the duties of his office and has omitted or is unable to appoint an assistant town clerk, the selectmen may appoint one, who, having been sworn, shall act as town clerk during such inability or until the next town election.