Fixed TypeError in patched setBody for the tests.

The first argument may be None or something else unexpected.