Fix crash when joystick isn't connected