Make sure response body exists before invoking response block