Avoid a 404 error when image id is not yet present.