Don't load media files if they are empty in settings

If the settings for the media is empty don't add it because the rendered url would be STATIC_URL which could be return html and thus break things.