tdb2: fix two bogus returns in check.c