Gracefully handle missing git plugin

Also see https://bugs.kde.org/show_bug.cgi?id=278252

BUG: 336948