Added check to prevent theme failure if using legacy config.php file without THEME def's