alphagov/whitehall — pull request #344 by chrismdp (2013-03-14 11:00:13+00:00)
Title: Ensure that validation passes if image missing

When we simply validate against the image we can run into a
race condition where the image is temporarily unavailable due to virus
check, or on preview and development environments where we don't copy
the assets.

If the `ImageData` record is invalid for this reason, we
weren't able to copy over this association when republishing the
document. Therefore we need to ignore the validation of the image.

This doesn't break the previous 'featuring without an image' behaviour,
as we still check to see whether an `ImageData` record is successfully
created in the first place by checking the id is present.

Ticket: https://www.pivotaltracker.com/story/show/45879539