Skip generating a body if there is no schema

It was generating a body and then removing it, which was error prone.