Fixes #5574 - Reverts removal of $CONFIG->site_config_loaded = true;
Merge pull request #5575 from Srokap:ticket_5574