Don't crash if a referenced image was deleted or otherwise missing.

Change-Id: I6cea40912b03162f47f4c71d4765be907011399b
Merge "Don't crash if a referenced image was deleted or otherwise missing."