remove non-object notice in the change_featured_image_media_strings() fu...

Removes notice: Trying to get property of non-object.