Fixed behavior with check-all checkbox.

After your refactor there was a bug with the **check-all** checkbox. If there was not files in the git-edited files list, the button was enabled on click on **check-all**.