remove undefs from readdlm result. fixes #6247

They will be returned as empty strings.
Also added tests to capture this.