bug fix: error when returned body is null on 404