Safe get device discovered value

Correct csv generating