luajson: fixes compatibility with lpeg 0.12 by closing off 0-length captures in loops