The line of code apparently reporting the invalid address is this:
if len(profile.NotifyProps["mention_keys"]) > 0 {
I guess profile
is nil? I took a look in ChannelMembers in the database to see if all the entries for that channel seem valid - can't see anything strange.