That guidance has been updated though:
"Accidental handball by an attacking player (or team-mate) is only penalised if it occurs ‘immediately’ before a goal or clear goal-scoring opportunity.
“If an attacking player accidentally touches the ball with their hand or arm and the ball then goes to another attacking player and the attacking team immediately scores, this is a handball offence.
“It is not an offence if, after an accidental handball, the ball travels some distance (pass or dribble) and/or there are several passes before the goal or goal-scoring opportunity.”
In you scenario the ball will have traveled "some distance" after the accident handball so the handball is not considered to be an offence.