Bug 972771 - Fix failure in test_gallery_delete_image.py