Update Code.gs

[*] Correct getdevicebyendpointuuid function to check the correct type of the device (when using a device with multiple types and with the same endpoint uuid)