Make getDeviceId() fail on platforms that do not support Device ID.