Check for Clipping.media being null before using it.