Check for NULL joystick in SDL_JoystickGetGUID()
Removed unused variables (thanks Joseph!)