You've quoted the wrong part of the rules, though.
"It is an offence if a player:
scores in the opponents' goal:
directly from their hand/arm, even if accidental, including by the goalkeeper
immediately after the ball has touched their hand/arm, even if accidental"
It's 100% a foul, we just got very lucky the refs didn't see it.