This specific play of a batter being hit by a pitch while outside the batter's box is not covered in the rule book, which has led to this discussion.
Official Interpretation from PONY 05-06-13: Provided the batter did not attempt to bunt or swing at the pitch, if a pitched ball hits the batter in front of the batter's box, the ball is dead and the umpire shall rule "no pitch."
Official Interpretation from PONY 05-06-13: Provided the batter did not attempt to bunt or swing at the pitch, if a pitched ball hits the batter in front of the batter's box, the ball is dead and the umpire shall rule "no pitch."