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