frame: fix a missing test in write_table