Solve error on checking completely empty files

Fixes #57
Merge pull request #58 from sschaef/t57-error-on-empty-file

Solve error on checking completely empty files