Fixed NullReferenceException on creating new Repository.
Merge pull request #1 from jakubgarfield/master

Fixed NullReferenceException on creating new Repository.