Fixing issue with generating csv files. Wasn't taking poorly formed addresses into account.