Add a sanity check to fix broken stackfiles

In this particular case, a block with offset,length of 0,1 in an empty paragraph...