Make nbdiff work in environments in which hglib.open(path) doesn't return an error