nil attributes should result in empty string