On the exclusion of the negative contribution to the molecular partition function