Avoid errors when response cannot be parsed

The torf variable is sometimes empty, resulting in a useless error in the program's output.