Add null checks for guild.id and guild.name when resolving Discord entities. This prevents TypeError when processing invite links for servers/channels the bot doesn't have cached. Fixes #6606