Fix a crash when rejecting DeleteDialog within AnnotationDialog with only one image.