Check if the pathconfig.php exists.

Otherwise a "file not found" warning will be triggered.
Merge pull request #6862 from tristanlins/feature/pathconfig-hardening-1