remove undefs from readdlm result. fixes #6247