fix: arguments must be checked by lua_isnoneornil function.