fix backbone trace creation

The backbone trace creation was failing when a single amino
acid was followed by a non-aminoacid residue, which was
then again followed by an amino acid.