Martyn’s Law should not be used as an excuse to stifle protests, peers have heard.