Use media_domain for embed URL.
Guard against pref_show_stylesheets being bad in UnloggedUser case.