nodemap: track the tip_node for validation
Differential Revision: https://phab.mercurial-scm.org/D8184