remove non-object notice in the change_featured_image_media_strings() function

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