Whether the next down will be first down is determined at the time the ball becomes dead and after considering any act, except a nonplayer foul or unsportsmanlike foul, which occurred during the down.