fix status bug: 'git status' raise 'KeyError' in an empty repository.

It just work. You might have a better way.