Correctly fall back to user agent, default, first then no theme