Fixes error when converting empty tables.