[PATCH v5 3/8] hidclass: Improve error handling in get_device_id