Fix for case when MEDIA_ROOT or MEDIA_URL are set to ""