added check for empty chunk in done lines remover