Fix case clause error when handler state has changed in set_resp_body/2