Prevent changes to device.id in ApplyDataMap.

Fixes ZEN-14518.