The thing is that if someone wants to use a bomb to derail a train it may be easier to place the bomb on or near the tracks, which obviously bypasses any security onboard.
This was attempted on the TGV during the terrorist wave of the mid-90s in France but, fortunately, it did not detonate.
That being said, I think that they have X-ray checks now on TGVs.