Make the parameter checking consistent.

Make format_parameters() raise CommandError with
the same message. Rather than raise MalformedRequestBody
and then catch that and raise CommandError. This just
simplifies things.

Change-Id: Ic05af32dd916e953e6b162daccc4525cb4734a46