dinput: Fix incorrect check in device_disabled_registry.