Fix image field with warnings enabled

Checks if meta['sizes'] is set before checking if its an array - produces a warning otherwise, which breaks the ajax call to load images for the "Select Image" box for the image type.