SFR460478 - NPE when loading devices on upgrade to V2.9.00

If a user upgrades while one of their previously seen devices is offline they will hit an NPE and get no devices. The fix is to write a dummy UID in the migration code so their device preference order is retained