Crash if message id is not in network

If var m = this.messages[id] is undefined the log message two lines down does fail as name is undefined, too.