small fix: do not try parsing empty response