[CPP, Shell, #EP2] Script expects previous word when there is none

Can someone explain why the solver expects the third argument to be “git” in the second tab press for completion? The full command is “git re” and has no third term, so I expect argv[3] to be an empty string.