Fix a bug in the cycle detector when goodrepos is empty
Merge pull request #116 from aplanas/master

Fix a bug in the cycle detector when goodrepos is empty