Fixed handling of null expected_usn, broken when adding support for Embedded Devices
Fixed casting a service to a device when a service expires
Actually use the device that is selected when expected_usn is null