[Bug 1110] Fixed getDevices() exception INVALID_VALUE -> INVALID_DEVICE_TYPE