Added protection from NullPointerException when dotGitDirectory is wrong.
Merge pull request #140 from bsodzik/master

Added protection from NullPointerException when dotGitDirectory is wrong.