Fix TISTUD-5284: NPE when deleting a repo from git.