Removing media listeners in cases you can't build a media URL

As per title.