Fixed crash with NS2Stats

I caused an infinite loop by accidentally omitting a local statement.