Issue #3251625 by alexpott, Berdir: Including settings.php a second time and without same context can result in errors
mentioned in commit 81690f84