nTox: fixed 2 possible crashes, 3 incorrect packet lengths