Fix for addOrGetTorrentIDSReturn, handle duplicate infohashes