Add id field to onMessage's message object, if the event contained an id.