fix error in MvcGallery meta box when an Image was previously deleted