Avoid creating empty compaction tasks after truncate