Fix case when the media url is empty