"A goal is scored when the whole of the ball passes over the goal line, between the goalposts and under the crossbar, provided that no offence has been committed by the team scoring the goal."The ball is going wide of the goal, it hits a players hand and goes into the goal.
Its simply not a goal.
No deliberate handball = no offence = goal.