Prevent send-pack from segfaulting when a branch doesn't match