Fix for crash when no XInput device is found.