fix getTheme() : the RegExp global object conflicts with local theme matches.