Refactored errorHandler updateActiveTheme