fix spin multiplicity checking bug with ghost atoms
Merge remote-tracking branch 'origin/master'