Fix NullPointerException in DeviceListAdapter