Fixed the file map lookup to use hasOwnProperty