Fixed create_default_site() to use a default value in case settings.SITE_ID isn't set; refs #23945. Backport of 818182b5 from master