Added checking for TypeError on str resp

RM4558