ISU-98 Fix undefined index error with missing attributes.

Sometimes media_crop them function does not receive all the attributes
it's expecting. This adds a check to make sure the attribute exists
before trying to use it.