HID: rmi: Check that a device is a RMI device before calling RMI functions