Fixed crash in git plugin