Crash if message id is not in network

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