As a node runner I was worried about this too. Turns out that illegal content has been present on the blockchain for a few years now:
We probably don't see this sort of content too often because nobody wants to risk getting caught broadcasting it.