Make it possible to not load media files

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.