Make pygit2.TreeBuilder() to fail (issue #265)