Avoid a loop closure issue that caused incorrect sequence lookups.
Merge pull request #5422 from pchote/but-I-do-have-shroud

Avoid a loop closure issue that caused incorrect sequence lookups.