Fix crash when a sprite data files refers to a non-existing image.