handle a nil body correctly on response