Invalid null check in JSON parser caused infinite loop when encoding lua...

... numeric arrays. Warning! I have not tested this change on the current branch, so take it as you will.