Fixed crash trying to get the GUID of an invalid joystick index