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