Do not try to parse empty responses

Solution for #431