Re-add error checking to -initWithURL:error:

Although libgit2 does some error checking, it also likes to assert against NULL. Avoid crashing by short-circuiting the nil or obviously invalid case.
Merge pull request #131 from libgit2/path-error-checking

Re-add error checking to -initWithURL:error: