Avoid a few PHP Warnings when files don't exist and use a better method to locate the local filepath.
See #18201


git-svn-id: https://develop.svn.wordpress.org/trunk@25811 602fd350-edb4-49c9-b593-d223f7449a82