[OE-5273] fixed crash when rendering the delete form for a legacy intravitreal injection