[PATCH v3 2/8] hidclass: Improve error handling in get_device_id