Work around potential race condition.

From Issue #54 it looks like we may be adding peers before we have
a torrent. Add checks to reject peers before we have a torrent.