Consolidating "isFileNotFoundError" logic, and avoiding a coverage gap