fix index.changes_from_tree against a repository with no initial commit.

index.changes_from_tree(object_store, None) should work. This change modifies BaseObjectStore.iter_tree_contents so that it works with tree_id=None.