Add possibility to merge when head is unborn (empty repository)

See https://github.com/libgit2/libgit2/issues/2135 for more details

cc @Nulltoken