49ers QB Trey Lance taken off on cart with ankle injury