Solve error on checking completely empty files

Fixes #57

---

The change has the problem that it is not possible anymore to enforce rules like check header on empty files. I thought that for empty files such a rule is not necessary, what do you think?