Fixes fatal error when a commit has 0 updated files

Fixes "Fatal error: Call to a member function addLine() on a non-object" when commit has 0 updated files