Made table reading safer

Now if the string is not correct, it doesn't crash, it just warns the
user and displays and returns an empty table.