Fixing undefined values in table cols to be empty string instead of 'undefined'