Fixed TISTUD-5151: do not throw the error while refreshing git index.