Fix crash on joystick disconnect