Update `ApplicationPid` so that "canWrite" is only called for files that already exist. See gh-9922 Fixes gh-10784
Assume