[PATCH v8 3/7] hidclass: Improve error handling in get_device_id