Fixes Fatal error: Call to a member on a non-object

Fixes "Fatal error: Call to a member function addLine() on a non-object" when commit has 0 updated files
Merge pull request #16 from MSylvia/master

Fixes fatal error when a commit has 0 updated files