update-index: fix segfault with missing --cacheinfo argument