Check for no `Cmd` on exec create endpoint

Fixes #9414

Noticed when I don't post any data to exec create I still get a 200 status code back, which is weird.
Wait, I don't see why `api` tests would be in `cli` tests dir.  I don't see how this can be tested via the cli because of the validation there.