Fix MOAIJSONParser flags while encoding

Now flags reading from lua state is wrong, just fix it