Updates to smbresult_tocsv error checking