get_commit_tree(): return NULL for broken tree