gitweb: Protect against possible warning in git_commitdiff