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

Can you add the spaces back in so that this file is unchanged. Better to keep the patch smaller if we don't need to change this file.