Fix another null deref in sdb_sync