Add nullptr check before printing found device type

Bug: 185106633
Test: manually
Change-Id: I5ed272cf29b207c2ccaaff468345dcf5c615b912
1 file changed