migrateImagesToSwift: add a check for empty storage_key