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