Fix for the internal structural object PDB writing.
The PDB format was not being followed correctly! The TER record comes after ATOM records but before HETATM records. It is not needed if there are no ATOM records.
Authored by: bugman 2010-03-19
Parent: [r11027]
Child: [r11029]