data returns as undefined

Data returns as undefined when file not found.