tdb: Don't segfault if tdb_open_ex for check failed