Open S4 repository return NULL instead of error on failure

When opening the repository from the S4 class git_repository repo
slot, the function now returns NULL instead of throwing an error.