[CB-4850] only write device guid if it does not exist