magit-with-temp-index: bugfix