Replace missing user ids with tenant ids in image migration