Check if media wysiwyg exists before trying to replace file IDs.