Bug 1058853 - Don't break the gallery if we have corrupt images

I'd like to keep this console.error() call here.