bugfix in nodepairenergy: zero is a legitimate value for pair energy, so use -1 to indicate the energy hasn't changed