Don't check for a file with no data pages until we've truncated back to
the last checkpoint, the truncation might discard all of the data pages.
This closes #820.