Fix null ptr deref on TDB_TRACE with internal db.