I had that happen to several of my thralls recently. It was always the same thralls falling through foundations, whereas some others in the same location did not.

Most of the time I was able to just pick them up and place them back, like Lucidique suggests. One of them was in a sitting position and had sunk so low that I had to blow up a foundation piece to pick her up.