remove undefs from readdlm result. fixes #6247
Merge pull request #6249 from tanmaykm/readcsv

remove undefs from readdlm result. fixes #6247