Bug fix for the interatomic_loop() function for when only a single spin ID is used.
Authored by: bugman 2012-06-28
Parent: [r17096]
Child: [r17098]