mongo-sync: Check mongo_sync_cmd_insert() arguments earlier.
mongo-sync: Check mongo_sync_cmd_insert() arguments earlier.

In order to be able to bail out early, before touching the network,
test arguments earlier.

algernon/libmongo-client,algernon/libmongo-client,algernon/libmongo-client