Fixed crashing when no joystick was plugged in.