If the event contains a “device” field, this function will return it, else it will return null.
a Event.
a Device, or null.