I think you are mixing up total charge and net charge. The "sum" version gives the sum of the differences of the Mulliken charges and the neutral atom charges (i.e. the net charge of the central region), but summing manually just gives you the total Mulliken charges (total number of electrons in the central region).