MDL-23824 prevent header warnings on CLI after fatal config.php error detected