Media manager: Avoid a blank modal when an invalid image size class is set on the image.

props gcorne.
fixes #24409.


git-svn-id: https://develop.svn.wordpress.org/trunk@27687 602fd350-edb4-49c9-b593-d223f7449a82