The character name is missing here. Either this cannot be read out correctly or it does not exist, so the variable fullName is nil and the Ambiguate function outputs an error.
Here you would have to ask whether the variable is not nil, something like:
Lua Code:
if fullName ~= nil then
table.insert(guildPlayers, Ambiguate(fullName, "guild"))
end