Intermediates and private key passphrase are optional in CertManager,
But local CertManager tries to get or delete these anyway.
This patch checks file existence when getting or deleting files.
Change-Id: I5f883e03fff9cf4cb3466698d63ae8ba337f9f2d
Closes-bug: #1494645