[Device] Fix a GetIcon() crash case

Fix issue #84