Prevent git-upload-pack segfault if object cannot be found