Fix crash when remove .gitignore file