[PATCH 2/7] hidclass: Fix error handling in get_device_id