SDLJoystick: fix null dereference when no joystick are plugged