Added sanity check to get_table_field
merge