Fix error handling in LSM truncate implementation.

References #1100