git add --intent-to-add: fix removal of cached emptiness