Solve error on checking completely empty files

Fixes #57