XML and JSON crash

Right now the ngrokd client crashes when there's an empty json/xml body (or any other non-syntax error); see #7.

This fixes those.