check when parsing lines for DiscoveryCommunity

Fix tribler issue ![#881](https://github.com/Tribler/tribler/issues/881).