Prevent infinite loop when Fedora and Solr are out of sync (fixes #199)