Fix incorrect handling of single residue chains
The code for deciding if a molecule is circular would incorrectly assign single residue chains as cyclic, leading to errors in pdb2gmx and wrong topologies.
Fixes #4029 (closed)
Closes #4029 (closed)