dump: fix empty table panic