Issue #2259757 by m1r1k: Fix _bootstrap_process_theme_registry().