Chemical Reactions: fix .getUnpairedElectrons() function

It was returning wrong values e.g. for valence electrons == 2.