Guard against some error conditions in getUUID