[BUGFIX] Error on empty repository without any single commit

Resolves: #31
Releases: 1.3.x, 1.2.x