fix .git/index.lock conflict: suppress error message in case there
is no index at all (e.g. bare)