Updated code to handle a specific use case, and added a test

Hello, I used this component in my app but I noticed a bug with the output CSV file.  It turns out that if the first item(s) of the array passed to the "stringify" function is null or empty, then a comma will not be output.  This causes all the rest of the columns in that row to be misaligned.

Here's the fix that I used in my app.