backups: stop passing partial nodeid to repo.__contains__

Authored by martinvonz.

Description

backups: stop passing partial nodeid to repo.contains

repo.contains (and repo.getitem) accepts a more limited set
input types these days.

Differential Revision: https://phab.mercurial-scm.org/D3972

Details