setting THEME_NAME to None when it's set to an empty string

@feanil @talbs