git-gui: fix exception when trying to stage with empty file list