CA-116596 fix the fix for log-censoring

The earlier patch in pull request https://github.com/xapi-project/xen-api/pull/1457 introduced bug CA-116596.
This fixes the bug and makes the code less brittle: likelier to do the right thing for future commands and their params.