Don't terminate on empty files

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>