[clang-tools-extra] Adopt FileManager's error-returning APIs