fix task failure when typescript looks for files that may be missing

typescript seems to look for available files by trying to read them, this causes
problems as if the grunt.file.read fails it will fail the task.