only return the output if the system call was sucessful

There is an edge case if the file has not been virus scanned yet.

Also testing on some files show processing errors, so only add to index
if sucessfull text extraction has occured