check when parsing lines for DiscoveryCommunity

Fix tribler issue #881.