return None for BAD_REQUEST, fix text retrieval
return None for BAD_REQUEST, fix text retrieval

pyfarm/pyfarm-agent,pyfarm/pyfarm-agent,guidow/pyfarm-agent,guidow/pyfarm-agent,pyfarm/pyfarm-agent,guidow/pyfarm-agent