If lua_tolstring() returns null, avail_in may not be modified,
therefore we must force it to be zero.  Thanks to Enrico Tassi for
finding and fixing this bug