Keep retrieveJob() working if the last line has no newline.