Only truncate the log if the scan finishes before the truncate LSN.

refs #746