fix KeyError for missing stat on nonexistent files